package com.buercc.boot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.*;

@RestController
@RequestMapping("/user")
public class UserAction {

    @GetMapping("/list")
    public List<Map> getList() {
        Map<String, String> map = new HashMap<>();


        LinkedList<Map> list = new LinkedList<>();

        map.put("user", "user");

        list.add(map);

        return list;
    }

    public static void main(String[] args) {

//        HashMap map = HashMap::new;

        List<String> strings = Arrays.asList("a", "b", "c");
        strings.forEach(System.out::println);
    }
}
